package com.mindskip.xzs.repository;

import com.mindskip.xzs.domain.dto.admin.question.QuestionPageDTO;
import com.mindskip.xzs.domain.entity.Question;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QuestionMapper extends BaseMapper<Question> {

    // 得到所有题目数量
    Integer selectAllCount();

    List<Question> selectByPage(QuestionPageDTO questionPageDTO);

    List<Question> selectByIds(@Param("ids") List<Integer> ids);
}
